package cn.wolfcode.luowowo.article.mapper;


import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.query.DestinationQueryObject;
import cn.wolfcode.luowowo.common.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DestinationMapper {
    void deleteByPrimaryKey(Long id);

    void insert(Destination record);

    Destination selectByPrimaryKey(Long id);
    //查询目的热门的
    List<Destination> selectAll();

    List<Destination>  queryForList(DestinationQueryObject qo);

    void updateByPrimaryKey(Destination record);

    void updateHot(@Param("id") Long id, @Param("hot") Integer hot);
//    国外的省份
    List<Destination> listHotDestByRegionId(Long regionId);

    /**国内的省份
     * @return
     */
    List<Destination> selectProvinces();
}